From: Alexandre Emsenhuber Date: Sat, 19 Feb 2011 12:31:50 +0000 (+0000) Subject: We have a OutputPage object; so use it to get the Title object instead of $wgTitle X-Git-Tag: 1.31.0-rc.0~31900 X-Git-Url: http://git.cyclocoop.org/%7D%7Cconcat%7B?a=commitdiff_plain;h=a9b91a9336245b615a3c5ec50b367af9c3a56efd;p=lhc%2Fweb%2Fwiklou.git We have a OutputPage object; so use it to get the Title object instead of $wgTitle --- diff --git a/includes/LogEventsList.php b/includes/LogEventsList.php index 820793a9ef..4a6db2bdb4 100644 --- a/includes/LogEventsList.php +++ b/includes/LogEventsList.php @@ -138,7 +138,7 @@ class LogEventsList { * @return String: Formatted HTML */ private function getFilterLinks( $filter ) { - global $wgTitle, $wgLang; + global $wgLang; // show/hide links $messages = array( wfMsgHtml( 'show' ), wfMsgHtml( 'hide' ) ); // Option value -> message mapping @@ -154,7 +154,7 @@ class LogEventsList { $query[$queryKey] = $hideVal; $link = $this->skin->link( - $wgTitle, + $this->out->getTitle(), $messages[$hideVal], array(), $query,